import request from '@/utils/request'

// 查询抄送配置列表
export function listOaCopyConfig(query) {
  return request({
    url: '/activiti/OaCopyConfig/list',
    method: 'get',
    params: query
  })
}

// 查询抄送配置详细
export function getOaCopyConfig(id) {
  return request({
    url: '/activiti/OaCopyConfig/' + id,
    method: 'get'
  })
}

// 新增抄送配置
export function addOaCopyConfig(data) {
  return request({
    url: '/activiti/OaCopyConfig',
    method: 'post',
    data: data
  })
}

// 修改抄送配置
export function updateOaCopyConfig(data) {
  return request({
    url: '/activiti/OaCopyConfig',
    method: 'put',
    data: data
  })
}

// 删除抄送配置
export function delOaCopyConfig(id) {
  return request({
    url: '/activiti/OaCopyConfig/' + id,
    method: 'delete'
  })
}
